package com.atguigu.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description
 * @Author lzc <1029669636@qq.com>
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/1/13
 */
@FeignClient("service-order")
@Component
public interface OrderFeign {

    @GetMapping("/orderservice/order/isBuy/{courseId}/{memberId}")
    public Boolean isBuy(@PathVariable("courseId") String courseId, @PathVariable("memberId") String memberId);
}
